
package com.jims.master.modules.doctor.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.doctor.entity.ClinicOrdersCost;
import com.jims.master.modules.finance.entity.InpSettleMaster;
import com.jims.master.modules.oper.entity.PriceList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 门诊项目明细DAO接口
 * @author CTQ
 * @version 2017-03-13
 */
@MyBatisDao
public interface ClinicOrdersCostDao extends CrudDao<ClinicOrdersCost> {

    /**
     * 根据医嘱信息删除医嘱明细
     * @param ordersId
     * @return
     * @author CTQ
     */
    public int delByOrderId(@Param("ordersId")String ordersId);

    /**
     * 查询价表的集合
     * @param ordersId
     * @return
     */
    public List<PriceList> findpriceList(@Param("ordersId") String ordersId);

    /**
     * 根据clinicOrders主键查询明细
     * @param ordersId
     * @return
     */
    public List<String> findByOrdersId(@Param("ordersId") List<String> ordersId);

    public List<BaseDto> findCostList(@Param("ordersId") String ordersId);

    List<InpSettleMaster> findPage(@Param("ordersId") List<String> ordersId);

    /**
     * 修改门诊是否医保上传状态
     * 医保是否上传 1上传 0未上传
     * @param clinicOrdersCost
     * @return
     */
    int updtateIsUpload(ClinicOrdersCost clinicOrdersCost);
}